<?php get_header();?>
<!-- Dung cho trang tin tuc va trang dich vu -->
<body>
<div id="container">
	<!-- baner -->
	<?php include TEMPLATEPATH.'/views/view-header.php';?>
	<!-- end banner-->
	<!-- menu -->
	<?php include TEMPLATEPATH.'/views/view-menu.php';?>
	<div class="body_content">
	<div id="content">
		
		<!-- left_comlumds -->
		<?php get_sidebar();?>
		<!--end left_comlumds -->
		<!-- right_comlumds -->
		<div class="right_comlumds">
			<!-- right_box_1 -->
			<div class="box_1_right">
				<div class="title_right">
					<div class="right_title_r3">
						<img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/icon_title.jpg" alt="" />
						<?php bt_breadcrumb();?>
					</div>
				</div>
				
				<?php 
				if(is_singular('news-event'))
				{
					$mytitle = 'Tin tức';
					$myposttype = 'news-event';
				}
				else if(is_singular('projects'))
				{
					$mytitle = 'dự án';
					$myposttype = 'projects';
				}
				else if(is_singular('services'))
				{
					$mytitle = 'dịch vụ';
					$myposttype = 'services';
				}
				else if(is_singular('testimonials'))
				{
					$mytitle = 'khách hàng';
					$myposttype = 'testimonials';
				}
				
				the_post();
				$mypost_id = get_the_ID();
				
				?>
				<div class="content_about">
					<div class="duan_chitiet">
						<h2><?php the_title();?></h2>
						
						<?php 
						the_content();
						?>	
							<div class="duan_khac">
								<div class="title_duan">
									Các <?php echo $mytitle;?> khác
								</div>
								<div class="box_duankhac">
									<ul>
									<?php 
									$args = db_list_different_post_type($mypost_id, 10, $myposttype, 'date', 'DESC', $wpdb->prefix.'display', 'display');
									query_posts($args);
									include TEMPLATEPATH.'/views/loop-dif-news.php';
									?>
									</ul>
								</div>
							</div>
					</div>
					
					
				</div>
				
			</div>
			<!-- end right_box_1 -->
			
		</div>
		<!-- right_comlumds -->
	</div>
	<!-- end content-->
</div>
	<!-- end content-->
	<?php get_footer();?>
